<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User extends CI_Controller {

 
	function __construct()
	{
		parent::__construct();
		
		// check if user logged in 
		if (!$this->ion_auth->logged_in())
	  	{
			redirect('auth/login');
	  	}
		$this->load->model('user/user_model');
		$this->load->model('user/attendance_model');		
	}
		
   function index()
   {
	   $page = $this->session->flashdata('page');	
	   $meta['page_title'] = "welcome user";	
	   $meta['message'] = "Logged In Successfully";
		$meta['dashboard']="dashboard";
		$data="";
		//print('i am here');exit;	
	//   $data['server_time'] = $this->attendance_model->get_server_time();
	  // $data['my_tasks'] = $this->user_model->get_my_tasks();
	  
       $this->load->view('common/header', $meta);
   //  echo "hello dear";exit;
	  $this->load->view('user/dashboard',$data);
	  // $this->load->view('user/dashboard',$data);
       $this->load->view('common/footer');
   }
	
	
}
	
	?>